import request from "@/utils/request.js"

export const getAllChannels = () => {
	return request({
		url: 'v1_0/channels'
	})
}

export const addUserChannel = channel => {
	return request({
		method: 'PATCH',
		url: '/v1_0/user/channels',
		data: {
			channels: [channel]
		}
	})
}

export const delUserChannel = channelID => {
	return request({
		method: 'DELETE',
		url: `/v1_0/user/channels/${channelID}`
	})
}
